<?php
namespace Api\Controller;
use Think\Controller;
class MatchController extends Controller {
   public function matchlist(){
        $matchModel=M('match');
        $data=$matchModel->order('matchid')->select();
        echo json_encode($data);
    }

    public function matchdetail(){
    	$id=$_GET['matchid'];
        $matchModel=M('match');
        $data=$matchModel->where("matchid='$id'")->select();
        echo json_encode($data);
    }
}